package com.njtoyo.taxi.admin.mapper.master.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njtoyo.taxi.admin.library.Const;
import com.njtoyo.taxi.admin.mapper.master.entity.SimpleCallRide;
import com.njtoyo.taxi.admin.rest.presenter.business.ride.RideListPresenterDTO;
import com.njtoyo.taxi.admin.rest.presenter.business.simple_call_ride.ListPresenter;
import com.njtoyo.taxi.admin.rest.presenter.business.simple_call_ride.SimpleCallRideVO;
import com.njtoyo.taxi.admin.rest.wrapper.business.ride.OrderManageQueryDto;
import com.njtoyo.taxi.admin.rest.wrapper.business.simpleCallRide.SimpleCallRideQueryWrapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 一键叫车行程表 Mapper 接口
 * </p>
 *
 * @author Dell
 * @since 2021-08-11
 */
@Repository
@DS(Const.PRIMARY_DS)
public interface SimpleCallRideMapper extends BaseMapper<SimpleCallRide> {
    IPage<ListPresenter> selectSimpleCallRideList(Page<ListPresenter> page, @Param("ew") SimpleCallRideQueryWrapper wrapper);

    ListPresenter detail(Long id);

    IPage<SimpleCallRideVO> getPageList(Page<SimpleCallRideVO> page, @Param("query") SimpleCallRideQueryWrapper queryWrapper);

    IPage<RideListPresenterDTO> getList(Page<Object> objectPage, SimpleCallRideQueryWrapper wrapper);

    List<SimpleCallRideVO> getOneClickSimpleCallPhoneRideAll(@Param("query") OrderManageQueryDto wrapper);

    List<SimpleCallRideVO> getOldSimpleCallPhoneRideAll(@Param("query") OrderManageQueryDto wrapper);
}
